package com.netscenery.yang.model;

public enum ErrorCode {
	COMMON_INVALIDNAME("invalid name,alphabet or digital " +
					"or \"_\" or \"-\" or \".\" is expected, and should start with alphabet " +
					"or \"_\", and should not start with \"xml\"."),
    MANDATORY_HASDEFAULT("mandatory node must have no default value."),
    INVALID_DEFAULTVALUE("invalid default value."),
    INVALID_VALUE("invalid value."),
    INVALID_CHARACTER("contains invalid character."),
    CONFLICT_NAME("conflict name occurred."),
    COMMON_ERROR("internal error.");
	private String fieldName;
	private ErrorCode(String name){
		this.fieldName = name;
	}
	public String getFieldName(){
		return this.fieldName;
	}
}
